# Maintainer: Dekedro <dekedro@protonmail.com>
pkgname=ergo-ldap
pkgver=0.0.1
pkgrel=9
pkgdesc="LDAP authentication plugin for Ergo IRCd"
url="https://github.com/ergochat/ergo-ldap"
arch="all"
license="Apache-2.0"
makedepends="go make"
options="!check" # No tests
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ergochat/ergo-ldap/archive/refs/tags/v$pkgver.tar.gz"

build() {
	make
}

package() {
	install -Dm755 -t "$pkgdir"/usr/bin/ ergo-ldap
	install -Dm644 -t "$pkgdir"/usr/share/doc/ergo-ldap/ example.yaml
}

sha512sums="
16e36b2ec83fdc88c2b1ca93ba680a41fc58263f353411722d00d1fb479dd45d2e607bb1c5f34a0b2cdbf840a92c8dc1dcc4cee2292aa230b885ec979fa753b1  ergo-ldap-0.0.1.tar.gz
"
